import request from '@/util/request.js'

export const allTendererInfo=()=>{
   return request.get('/tendererInfo/allTendererInfo')
}

export const someTendererInfo=()=>{
   return request.get('/tendererInfo/someTendererInfo')
}

export const checkTendererInfo=(no)=>{
   return request.put(`/tendererInfo/check?no=${no}`)
}

export const electTendererInfo=(no)=>{
   return request.put(`/tendererInfo/elect?no=${no}`)
}

export const select=(params)=>{
   return request.get('/tendererInfo/select',{params:params})
}

export const selectMyself=(name)=>{
   return request.get(`/tendererInfo/selectByName?name=${name}`)
}

export const addTenderInfo=(tendererInfo)=>{
   return request.post('/tendererInfo/add',tendererInfo)
}

export const updateTenderInfo=(tendererInfo)=>{
   return request.put('/tendererInfo/update',tendererInfo)
}